package com.itzhoun.book;

/**
 * @author zhounan
 * @Title: design-patterns
 * @Description: TODO
 * @date 16/5/2023下午 9:56
 */
public class StrategyEnvironment {

    private Strategy strategy;


    public StrategyEnvironment(Strategy strategy) {
        this.strategy = strategy;
    }

    public double clac(double price, int total){
        return this.strategy.clac(price, total);
    }
}
